.class Lrexsee/core/transportation/RexseeAjax$1;
.super Ljava/lang/Thread;
.source "RexseeAjax.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/transportation/RexseeAjax;->submit(Ljava/lang/String;Ljava/lang/String;Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;Ljava/lang/String;Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private stop:Z

.field private final stopRunnable:Ljava/lang/Runnable;

.field final synthetic this$0:Lrexsee/core/transportation/RexseeAjax;

.field private final synthetic val$ajaxUrl:Ljava/lang/String;

.field private final synthetic val$callbackJs:Z

.field private final synthetic val$encode:Ljava/lang/String;

.field private final synthetic val$postData:Ljava/lang/String;

.field private final synthetic val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;


# direct methods
.method constructor <init>(Lrexsee/core/transportation/RexseeAjax;Ljava/lang/String;Ljava/lang/String;Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;Ljava/lang/String;Z)V
    .locals 1

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    iput-object p2, p0, Lrexsee/core/transportation/RexseeAjax$1;->val$postData:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/core/transportation/RexseeAjax$1;->val$encode:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    iput-object p5, p0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    iput-boolean p6, p0, Lrexsee/core/transportation/RexseeAjax$1;->val$callbackJs:Z

    .line 78
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    .line 79
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    .line 80
    new-instance v0, Lrexsee/core/transportation/RexseeAjax$1$1;

    invoke-direct {v0, p0, p4, p5}, Lrexsee/core/transportation/RexseeAjax$1$1;-><init>(Lrexsee/core/transportation/RexseeAjax$1;Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;Ljava/lang/String;)V

    iput-object v0, p0, Lrexsee/core/transportation/RexseeAjax$1;->stopRunnable:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic access$0(Lrexsee/core/transportation/RexseeAjax$1;Z)V
    .locals 0

    .prologue
    .line 79
    iput-boolean p1, p0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    return-void
.end method


# virtual methods
.method public run()V
    .locals 34

    .prologue
    .line 89
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v5, v0

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v5}, Lrexsee/core/application/RexseeApplication;->getTimeout()I

    move-result v5

    move v0, v5

    mul-int/lit16 v0, v0, 0x3e8

    move/from16 v31, v0

    .line 91
    .local v31, "timeout":I
    :try_start_0
    new-instance v5, Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$postData:Ljava/lang/String;

    move-object v6, v0

    invoke-virtual {v6}, Ljava/lang/String;->getBytes()[B

    move-result-object v6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$encode:Ljava/lang/String;

    move-object v7, v0

    invoke-direct {v5, v6, v7}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$encode:Ljava/lang/String;

    move-object v6, v0

    invoke-virtual {v5, v6}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v28

    .line 92
    .local v28, "postBytes":[B
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    if-eqz v5, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, -0x1

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stopRunnable:Ljava/lang/Runnable;

    move-object v11, v0

    invoke-virtual/range {v5 .. v11}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;->run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V

    .line 93
    :cond_0
    new-instance v32, Ljava/net/URL;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v5, v0

    move-object/from16 v0, v32

    move-object v1, v5

    invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 94
    .local v32, "url":Ljava/net/URL;
    invoke-virtual/range {v32 .. v32}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v33

    check-cast v33, Ljava/net/HttpURLConnection;

    .line 95
    .local v33, "urlConnection":Ljava/net/HttpURLConnection;
    const-string v5, "POST"

    move-object/from16 v0, v33

    move-object v1, v5

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V

    .line 96
    const/4 v5, 0x1

    move-object/from16 v0, v33

    move v1, v5

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoInput(Z)V

    .line 97
    const/4 v5, 0x1

    move-object/from16 v0, v33

    move v1, v5

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V

    .line 98
    move-object/from16 v0, v33

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V

    .line 99
    move-object/from16 v0, v33

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setReadTimeout(I)V

    .line 100
    const/4 v5, 0x0

    move-object/from16 v0, v33

    move v1, v5

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setUseCaches(Z)V

    .line 101
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v22

    .line 102
    .local v22, "cookieManager":Landroid/webkit/CookieManager;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v5, v0

    move-object/from16 v0, v22

    move-object v1, v5

    invoke-virtual {v0, v1}, Landroid/webkit/CookieManager;->getCookie(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 103
    .local v20, "cookie":Ljava/lang/String;
    if-eqz v20, :cond_1

    .line 104
    const-string v5, "Cookie"

    move-object/from16 v0, v33

    move-object v1, v5

    move-object/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 107
    :cond_1
    const-string v5, "User-Agent"

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v6, v0

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v6}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v6

    invoke-virtual {v6}, Lrexsee/core/browser/Browser;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v6

    invoke-virtual {v6}, Landroid/webkit/WebSettings;->getUserAgentString()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v0, v33

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 108
    const-string v5, "Connection"

    const-string v6, "close"

    move-object/from16 v0, v33

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 111
    const-string v5, "Content-Type"

    const-string v6, "application/x-www-form-urlencoded"

    move-object/from16 v0, v33

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 112
    const-string v5, "Content-Length"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v28

    array-length v0, v0

    move v7, v0

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    move-object/from16 v0, v33

    move-object v1, v5

    move-object v2, v6

    invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V

    .line 113
    invoke-virtual/range {v33 .. v33}, Ljava/net/HttpURLConnection;->connect()V

    .line 114
    new-instance v24, Ljava/io/DataOutputStream;

    invoke-virtual/range {v33 .. v33}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v5

    move-object/from16 v0, v24

    move-object v1, v5

    invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    .line 115
    .local v24, "dos":Ljava/io/DataOutputStream;
    move-object/from16 v0, v24

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Ljava/io/DataOutputStream;->write([B)V

    .line 116
    invoke-virtual/range {v24 .. v24}, Ljava/io/DataOutputStream;->flush()V

    .line 117
    invoke-virtual/range {v24 .. v24}, Ljava/io/DataOutputStream;->close()V

    .line 118
    invoke-virtual/range {v22 .. v22}, Landroid/webkit/CookieManager;->acceptCookie()Z

    move-result v5

    if-eqz v5, :cond_2

    .line 120
    const/16 v23, 0x0

    .line 121
    .local v23, "cookieVal":Ljava/lang/String;
    const/16 v21, 0x0

    .line 122
    .local v21, "cookieKey":Ljava/lang/String;
    const-string v29, ""

    .line 123
    .local v29, "sessionCookie":Ljava/lang/String;
    const/16 v26, 0x1

    .local v26, "i":I
    :goto_0
    move-object/from16 v0, v33

    move/from16 v1, v26

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->getHeaderFieldKey(I)Ljava/lang/String;

    move-result-object v21

    if-nez v21, :cond_7

    .line 131
    const-string v5, ""

    move-object/from16 v0, v29

    move-object v1, v5

    if-eq v0, v1, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v5, v0

    move-object/from16 v0, v22

    move-object v1, v5

    move-object/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Landroid/webkit/CookieManager;->setCookie(Ljava/lang/String;Ljava/lang/String;)V

    .line 133
    .end local v21    # "cookieKey":Ljava/lang/String;
    .end local v23    # "cookieVal":Ljava/lang/String;
    .end local v26    # "i":I
    .end local v29    # "sessionCookie":Ljava/lang/String;
    :cond_2
    invoke-virtual/range {v33 .. v33}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;

    move-result-object v27

    .line 134
    .local v27, "inputStream":Ljava/io/InputStream;
    invoke-virtual/range {v33 .. v33}, Ljava/net/HttpURLConnection;->getContentLength()I

    move-result v8

    .line 135
    .local v8, "totalSize":I
    const/4 v9, 0x0

    .line 136
    .local v9, "downloadedSize":I
    const/16 v5, 0x400

    move v0, v5

    new-array v0, v0, [B

    move-object/from16 v18, v0

    .line 137
    .local v18, "buffer":[B
    const/16 v19, 0x0

    .line 138
    .local v19, "bufferLength":I
    const-string v10, ""

    .line 139
    .local v10, "rtn":Ljava/lang/String;
    :cond_3
    :goto_1
    move-object/from16 v0, v27

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/io/InputStream;->read([B)I

    move-result v19

    if-lez v19, :cond_4

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    move v5, v0

    if-eqz v5, :cond_9

    .line 144
    :cond_4
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    move v5, v0

    if-nez v5, :cond_6

    .line 145
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    if-eqz v5, :cond_5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, 0x1

    const/4 v11, 0x0

    invoke-virtual/range {v5 .. v11}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;->run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V

    .line 146
    :cond_5
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$callbackJs:Z

    move v5, v0

    if-eqz v5, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v5, v0

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v5, v5, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v6, "onAjaxReturned"

    const/4 v7, 0x2

    new-array v7, v7, [Ljava/lang/String;

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v9, v0

    .end local v8    # "totalSize":I
    .end local v9    # "downloadedSize":I
    aput-object v9, v7, v8

    const/4 v8, 0x1

    invoke-static {v10}, Lrexsee/core/utilities/Escape;->escape(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v7, v8

    invoke-virtual {v5, v6, v7}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 159
    .end local v10    # "rtn":Ljava/lang/String;
    .end local v18    # "buffer":[B
    .end local v19    # "bufferLength":I
    .end local v20    # "cookie":Ljava/lang/String;
    .end local v22    # "cookieManager":Landroid/webkit/CookieManager;
    .end local v24    # "dos":Ljava/io/DataOutputStream;
    .end local v27    # "inputStream":Ljava/io/InputStream;
    .end local v28    # "postBytes":[B
    .end local v32    # "url":Ljava/net/URL;
    .end local v33    # "urlConnection":Ljava/net/HttpURLConnection;
    :cond_6
    :goto_2
    return-void

    .line 124
    .restart local v20    # "cookie":Ljava/lang/String;
    .restart local v21    # "cookieKey":Ljava/lang/String;
    .restart local v22    # "cookieManager":Landroid/webkit/CookieManager;
    .restart local v23    # "cookieVal":Ljava/lang/String;
    .restart local v24    # "dos":Ljava/io/DataOutputStream;
    .restart local v26    # "i":I
    .restart local v28    # "postBytes":[B
    .restart local v29    # "sessionCookie":Ljava/lang/String;
    .restart local v32    # "url":Ljava/net/URL;
    .restart local v33    # "urlConnection":Ljava/net/HttpURLConnection;
    :cond_7
    const-string v5, "set-cookie"

    move-object/from16 v0, v21

    move-object v1, v5

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_8

    .line 125
    move-object/from16 v0, v33

    move/from16 v1, v26

    invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->getHeaderField(I)Ljava/lang/String;

    move-result-object v23

    .line 126
    const/4 v5, 0x0

    const-string v6, ";"

    move-object/from16 v0, v23

    move-object v1, v6

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    move-object/from16 v0, v23

    move v1, v5

    move v2, v6

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v23

    .line 127
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static/range {v29 .. v29}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object v0, v5

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ";"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v29

    .line 123
    :cond_8
    add-int/lit8 v26, v26, 0x1

    goto/16 :goto_0

    .line 140
    .end local v21    # "cookieKey":Ljava/lang/String;
    .end local v23    # "cookieVal":Ljava/lang/String;
    .end local v26    # "i":I
    .end local v29    # "sessionCookie":Ljava/lang/String;
    .restart local v8    # "totalSize":I
    .restart local v9    # "downloadedSize":I
    .restart local v10    # "rtn":Ljava/lang/String;
    .restart local v18    # "buffer":[B
    .restart local v19    # "bufferLength":I
    .restart local v27    # "inputStream":Ljava/io/InputStream;
    :cond_9
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    new-instance v6, Ljava/lang/String;

    const/4 v7, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$encode:Ljava/lang/String;

    move-object v10, v0

    .end local v10    # "rtn":Ljava/lang/String;
    move-object v0, v6

    move-object/from16 v1, v18

    move v2, v7

    move/from16 v3, v19

    move-object v4, v10

    invoke-direct {v0, v1, v2, v3, v4}, Ljava/lang/String;-><init>([BIILjava/lang/String;)V

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    .line 141
    .restart local v10    # "rtn":Ljava/lang/String;
    add-int v9, v9, v19

    .line 142
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    if-eqz v5, :cond_3

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v6, v0

    const/4 v7, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stopRunnable:Ljava/lang/Runnable;

    move-object v11, v0

    invoke-virtual/range {v5 .. v11}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;->run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    goto/16 :goto_1

    .line 148
    .end local v8    # "totalSize":I
    .end local v9    # "downloadedSize":I
    .end local v10    # "rtn":Ljava/lang/String;
    .end local v18    # "buffer":[B
    .end local v19    # "bufferLength":I
    .end local v20    # "cookie":Ljava/lang/String;
    .end local v22    # "cookieManager":Landroid/webkit/CookieManager;
    .end local v24    # "dos":Ljava/io/DataOutputStream;
    .end local v27    # "inputStream":Ljava/io/InputStream;
    .end local v28    # "postBytes":[B
    .end local v32    # "url":Ljava/net/URL;
    .end local v33    # "urlConnection":Ljava/net/HttpURLConnection;
    :catch_0
    move-exception v5

    move-object/from16 v30, v5

    .line 149
    .local v30, "ste":Ljava/net/SocketTimeoutException;
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    move v5, v0

    if-nez v5, :cond_6

    .line 150
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    if-eqz v5, :cond_a

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v11, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v12, v0

    const/4 v13, -0x2

    const/4 v14, 0x0

    const/4 v15, 0x0

    invoke-static/range {v31 .. v31}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v11 .. v17}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;->run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V

    .line 151
    :cond_a
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$callbackJs:Z

    move v5, v0

    if-eqz v5, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v5, v0

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v5, v5, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v6, "onAjaxTimeout"

    const/4 v7, 0x2

    new-array v7, v7, [Ljava/lang/String;

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v9, v0

    aput-object v9, v7, v8

    const/4 v8, 0x1

    invoke-static/range {v31 .. v31}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v7, v8

    invoke-virtual {v5, v6, v7}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    goto/16 :goto_2

    .line 153
    .end local v30    # "ste":Ljava/net/SocketTimeoutException;
    :catch_1
    move-exception v5

    move-object/from16 v25, v5

    .line 154
    .local v25, "e":Ljava/lang/Exception;
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->stop:Z

    move v5, v0

    if-nez v5, :cond_6

    .line 155
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v5, v0

    if-eqz v5, :cond_b

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$progressListener:Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;

    move-object v11, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v12, v0

    const/4 v13, -0x3

    const/4 v14, 0x0

    const/4 v15, 0x0

    invoke-virtual/range {v25 .. v25}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v16

    const/16 v17, 0x0

    invoke-virtual/range {v11 .. v17}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;->run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V

    .line 156
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v5, v0

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v5

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->this$0:Lrexsee/core/transportation/RexseeAjax;

    move-object v6, v0

    invoke-virtual {v6}, Lrexsee/core/transportation/RexseeAjax;->getInterfaceName()Ljava/lang/String;

    move-result-object v6

    new-instance v7, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/core/transportation/RexseeAjax$1;->val$ajaxUrl:Ljava/lang/String;

    move-object v8, v0

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, ":"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual/range {v25 .. v25}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v6, v7}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_2
.end method
